package csc.daonjpa.java.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import csc.daonjpa.java.dao.TargetDAO;
import csc.daonjpa.java.domain.TargetAccount;

@Component
public class TargetService {
	
	private TargetDAO targetDAO;
	
	public TargetDAO getTargetDAO() {
		return targetDAO;
	}
	@Autowired
	public void setTargetDAO(TargetDAO targetDAO) {
		this.targetDAO = targetDAO;
	}


	public List<TargetAccount> getTargetAccounts() {
		return targetDAO.getTargetAccounts();
	}
	
	public TargetAccount getTargetAccount (String accountNum) {
		return targetDAO.getTargetAccount(accountNum);
	}
}
